package com.runvp.service.biz.service;

import com.runvp.service.biz.domain.BizCustomerEquity;

import java.util.List;

/**
 * 顾客权益Service接口
 * 
 * @author runvp
 * @date 2022-12-31
 */
public interface IBizCustomerEquityService {

    /**
     * 权益核销
     * @param code
     * @param phone
     * @return boolean
     */
    public boolean consumption(String sn,String code,String phone);
    /**
     * 查询顾客权益
     * 
     * @param id 顾客权益主键
     * @return 顾客权益
     */
    public BizCustomerEquity selectBizCustomerEquityById(Long id);

    /**
     * 查询顾客权益列表
     * 
     * @param bizCustomerEquity 顾客权益
     * @return 顾客权益集合
     */
    public List<BizCustomerEquity> selectBizCustomerEquityList(BizCustomerEquity bizCustomerEquity);

    /**
     * 生成充电码
     * @return str
     */
    public String createCode();
    /**
     * 新增顾客权益
     * 
     * @param bizCustomerEquity 顾客权益
     * @return 结果
     */
    public int insertBizCustomerEquity(BizCustomerEquity bizCustomerEquity);

    /**
     * 修改顾客权益
     * 
     * @param bizCustomerEquity 顾客权益
     * @return 结果
     */
    public int updateBizCustomerEquity(BizCustomerEquity bizCustomerEquity);

    /**
     * 批量删除顾客权益
     * 
     * @param ids 需要删除的顾客权益主键集合
     * @return 结果
     */
    public int deleteBizCustomerEquityByIds(String ids);

    /**
     * 删除顾客权益信息
     * 
     * @param id 顾客权益主键
     * @return 结果
     */
    public int deleteBizCustomerEquityById(Long id);
}
